<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>首页管理</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link href="${ctxPath}/static/admin/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<script src="${ctxPath}/static/admin/js/plugins/sweetalert/sweetalert.min.js"></script>
<link rel="shortcut icon" href="${ctxPath}/views/admin/favicon.ico">
<link href="${ctxPath}/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="${ctxPath}/static/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="${ctxPath}/static/admin/css/animate.css" rel="stylesheet">
<link href="${ctxPath}/static/admin/css/style.css?v=4.1.0" rel="stylesheet">

<style>
	.center {text-align: center;}
</style>
</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInUp" style="height:100%">
		<div class="row">
			<div id="Layer1" style="position:absolute; left:0px; top:0px; width:100%; height:100%">  
				<img src="${ctxPath}/static/admin/img/RedwoodHome.png" width="100%" height="100%"/>  
			</div>
		</div>
	</div>

	<!-- 全局js -->
	<script src="${ctxPath}/static/admin/js/jquery.min.js?v=2.1.4"></script>
	<script src="${ctxPath}/static/admin/js/bootstrap.min.js?v=3.3.6"></script>


	<!-- 自定义js -->
	<script src="${ctxPath}/static/admin/js/content.js?v=1.0.0"></script>


	<script>
        $(document).ready(function(){

            $('#loading-example-btn').click(function () {
                btn = $(this);
                simpleLoad(btn, true)

                // Ajax example
//                $.ajax().always(function () {
//                    simpleLoad($(this), false)
//                });

                simpleLoad(btn, false)
            });
        });

        function simpleLoad(btn, state) {
            if (state) {
                btn.children().addClass('fa-spin');
                btn.contents().last().replaceWith(" Loading");
            } else {
                setTimeout(function () {
                    btn.children().removeClass('fa-spin');
                    btn.contents().last().replaceWith(" Refresh");
                }, 2000);
            }
        }
    </script>

</body>
</html>
